<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>APP2</title>
</head>
<body>
	<p>
		脚本执行
		<img src="http://localhost:8000/user?no=123&to=b"></img>
	</p>
	<p>
		iframe执行
		<iframe src="http://localhost:8000/user?no=123&to=b"></iframe>
	</p>

	<p>
		<a href="http://localhost:8000/user?no=123&to=b" target="_blank">a标签</a>
	</p>
	<p>
		隐藏表单
		<form action="http://localhost:8000/user/id" method="POST">
				<input type="hidden" name="no" value="123" />
				<input type="hidden" name="to" value="b" />
		</form>
		<button id="submit">提交</button>
	</p>
	<script>
		const submit = document.body.querySelector('#submit')
		submit.addEventListener('click', () => {
			console.log(document.forms[0])
			document.forms[0].submit();
		})
	</script>
</body>
</html>